package com.system.demo.service.constant;

public class CognizanceRankConstant {
    // 奖项名次
    public static final int RANK_GRAND_PRIZE = 0;  // 特等奖
    public static final int RANK_FIRST_PRIZE = 1;  // 一等奖
    public static final int RANK_SECOND_PRIZE = 2;  // 二等奖
    public static final int RANK_THIRD_PRIZE = 3;  // 三等奖
    public static final int RANK_WINNER_PRIZE = 4;  // 优胜奖

    public static String getFinalRankLevelDescription(Integer finalRankLevel) {
        if(finalRankLevel == null) return "";
        switch (finalRankLevel) {
            case RANK_GRAND_PRIZE:
                return "特等奖";
            case RANK_FIRST_PRIZE:
                return "一等奖";
            case RANK_SECOND_PRIZE:
                return "二等奖";
            case RANK_THIRD_PRIZE:
                return "三等奖";
            case RANK_WINNER_PRIZE:
                return "优胜奖";
            default:
                return "未知状态";
        }
    }
}